package com.xiao.sulingproduct.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xiao.sulingproduct.entity.BusinessEntity;
import com.xiao.sulingproduct.vo.BusinessVo;
import com.xiao.sulingpublic.utils.PageUtils;

import java.io.IOException;
import java.util.Map;

/**
 * 创建商家表
 *
 * @author wen
 * @email 1322127758@qq.com
 * @date 2022-03-11 14:46:16
 */
public interface BusinessService extends IService<BusinessEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存或修改店铺数据
     * @param businessVo 要保存或修改的数据
     * @return 返回状态码
     */
    Integer saveOrUp(BusinessVo businessVo) throws IOException;

    /**
     * 获取店铺信息
     * @param memberUsername :用户号
     * @return 返回店铺信息
     */
    BusinessVo selectByMemberUsername(String memberUsername);
}

